﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using kxcxw.Data.Common;

namespace KXCXW.Web.CommonClass
{
    /// <summary>
    /// 跟项目紧密相关的处理类
    /// </summary>
    public sealed class CurrentHandle
    {
        private CurrentHandle() { }

        #region 图片相关

        public static string GetShowPicUrl(string picName)
        {
            return GetShowPicUrl(picName, DataConstants.DefaultShowPicUrl);
        }


        public static string GetShowPicUrl(string picName,string isNullReplacePicUrl)
        {
            if (string.IsNullOrEmpty(picName))
            {
                return isNullReplacePicUrl;
            }
            return @"~/Content/upload/thumbnail/" + picName;
        }

        #endregion
    }
}